import { Pipe, PipeTransform } from '@angular/core';
import {Config} from '../config';

@Pipe({name: 'partyType'})
export class PartyTypePipe implements PipeTransform {
     partyString:string;
    transform(value){
        Config.PARTY_TYPE.forEach(element=>{
            if(value==element.value){
                this.partyString =element.label;
            }
        });
        return this.partyString;
    }
}